doGenerate